package com.qs.core.entity;

import java.io.Serializable;
import javax.persistence.*;
import java.math.BigInteger;
import java.util.Date;


/**
 * The persistent class for the gen_applicant_info database table.
 * 
 */
@Entity
@Table(name="gen_applicant_info")
public class GenApplicantInfo implements Serializable {
	private static final long serialVersionUID = 1L;
	private String applicantId;
	private String createdBy;
	private Date createdDt;
	private BigInteger insuranceIbValue;
	private String isCurrentlyInsured;
	private String residenceOwnership;
	private String residenceType;
	private String updatedBy;
	private Date updatedDt;
	private GenInsuranceProviderMst genInsuranceProviderMst;
	private GenPersonDetail genPersonDetail;

    public GenApplicantInfo() {
    }


	@Id
	@GeneratedValue(strategy=GenerationType.AUTO)
	@Column(name="APPLICANT_ID")
	public String getApplicantId() {
		return this.applicantId;
	}

	public void setApplicantId(String applicantId) {
		this.applicantId = applicantId;
	}


	@Column(name="CREATED_BY")
	public String getCreatedBy() {
		return this.createdBy;
	}

	public void setCreatedBy(String createdBy) {
		this.createdBy = createdBy;
	}


    @Temporal( TemporalType.DATE)
	@Column(name="CREATED_DT")
	public Date getCreatedDt() {
		return this.createdDt;
	}

	public void setCreatedDt(Date createdDt) {
		this.createdDt = createdDt;
	}


	@Column(name="INSURANCE_IB_VALUE")
	public BigInteger getInsuranceIbValue() {
		return this.insuranceIbValue;
	}

	public void setInsuranceIbValue(BigInteger insuranceIbValue) {
		this.insuranceIbValue = insuranceIbValue;
	}


	@Column(name="IS_CURRENTLY_INSURED")
	public String getIsCurrentlyInsured() {
		return this.isCurrentlyInsured;
	}

	public void setIsCurrentlyInsured(String isCurrentlyInsured) {
		this.isCurrentlyInsured = isCurrentlyInsured;
	}


	@Column(name="RESIDENCE_OWNERSHIP")
	public String getResidenceOwnership() {
		return this.residenceOwnership;
	}

	public void setResidenceOwnership(String residenceOwnership) {
		this.residenceOwnership = residenceOwnership;
	}


	@Column(name="RESIDENCE_TYPE")
	public String getResidenceType() {
		return this.residenceType;
	}

	public void setResidenceType(String residenceType) {
		this.residenceType = residenceType;
	}


	@Column(name="UPDATED_BY")
	public String getUpdatedBy() {
		return this.updatedBy;
	}

	public void setUpdatedBy(String updatedBy) {
		this.updatedBy = updatedBy;
	}


    @Temporal( TemporalType.DATE)
	@Column(name="UPDATED_DT")
	public Date getUpdatedDt() {
		return this.updatedDt;
	}

	public void setUpdatedDt(Date updatedDt) {
		this.updatedDt = updatedDt;
	}


	//bi-directional many-to-one association to GenInsuranceProviderMst
    @ManyToOne
	@JoinColumn(name="INSURANCE_PROVIDER_ID")
	public GenInsuranceProviderMst getGenInsuranceProviderMst() {
		return this.genInsuranceProviderMst;
	}

	public void setGenInsuranceProviderMst(GenInsuranceProviderMst genInsuranceProviderMst) {
		this.genInsuranceProviderMst = genInsuranceProviderMst;
	}
	

	//bi-directional many-to-one association to GenPersonDetail
    @ManyToOne
	@JoinColumn(name="PERSON_ID")
	public GenPersonDetail getGenPersonDetail() {
		return this.genPersonDetail;
	}

	public void setGenPersonDetail(GenPersonDetail genPersonDetail) {
		this.genPersonDetail = genPersonDetail;
	}
	
}